FROM python:latest
LABEL autho="NT"
RUN mkdir /code
ADD requirements.txt /code
ADD uwsgi.ini /code
ADD ziguan /code
WORKDIR /code
RUN pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt \
&& rm -f requirements.txt 
EXPOSE 8000
ENTRYPOINT [ "uwsgi", "--ini", "uwsgi.ini" ]